
 package com.example.spinning.mapper;
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.example.spinning.bean.DailyReport;

 import org.apache.ibatis.annotations.Param;

 import java.util.List;

public interface DailyReportMapper extends BaseMapper<DailyReport> {

    //添加一条新的原料记录
    int addNewDailyReport(DailyReport dailyReport);

    //根据id删除原料记录
    int deleteDailyReportById(@Param("ids") Long[] ids);

    //根据id查记录
    DailyReport getDailyReportById(Long id);

    //根据车间查记录
    List<DailyReport> getDailyReportByWorkshop(@Param("workshop") String workshop);

    //根据品名查记录
    List<DailyReport> getDailyReportByName(@Param("name") String name);
    //查指定品名的数量
    int getNameCount(@Param("name") String name);

    //按日期查找

    //按品名和日期查找

    //修改
    int updateDailyReportById(DailyReport dailyReport);
    //查所有
    List<DailyReport> getAll(@Param("start") Integer start,@Param("count") Integer count);
    //查总数量
    int getAllCount();

}



